/**
 * Created by maxiaoqiang on 2018/6/25.
 */
import { put} from 'redux-saga/effects'
import {SCREEN_SUCCESS, SCREEN_ERROR} from 'action/const'

export function* screenChange(action) {
    try {
        yield put({ type: SCREEN_SUCCESS, screen: action.language });
    } catch(e) {
        yield put({ type: SCREEN_ERROR, screen: action.language });
    }
}